# -*- coding: utf-8 -*-
# @Time : 2021/9/11 11:24
# @Author : 阿怪
# @Email : 673691277@qq.com
# @File : login.py
# @Project : crm自动化测试项目实战

'''登录crm'''

import unittest
from selenium import webdriver
from selenium.webdriver.common.by import By
driver1 = webdriver.Chrome()
def login_crm(uname,passwd):
    '''登录crm'''
    driver1.get('http://192.168.1.140/crm3/')
    driver1.implicitly_wait(10)
    driver1.maximize_window()
    driver1.find_element(By.NAME,'name').send_keys(uname)
    driver1.find_element(By.NAME,'password').send_keys(passwd)
    driver1.find_element(By.NAME,'submit').click()


